# encoding: utf-8
#sdk version: 2.2.1060.13-SNAPSHOT

from sdktest_module.utils.api_base_builder import ApiBaseBuilder, parameter

class StartPreviewApiBuilder(ApiBaseBuilder):
	api_name = "com.demo.liveroom.autotest.AutoLivingViewModel.startPreview"

	@parameter(1,"android.view.ViewGroup")
	def viewGroup(self, viewGroup):
		return self

class StopPreviewApiBuilder(ApiBaseBuilder):
	api_name = "com.demo.liveroom.autotest.AutoLivingViewModel.stopPreview"

class SetPreviewZOrderOnTopApiBuilder(ApiBaseBuilder):
	api_name = "com.demo.liveroom.autotest.AutoLivingViewModel.setPreviewZOrderOnTop"

	@parameter(1,"boolean")
	def onTop(self, onTop):
		return self

class SwitchLocalVideoContainerApiBuilder(ApiBaseBuilder):
	api_name = "com.demo.liveroom.autotest.AutoLivingViewModel.switchLocalVideoContainer"

	@parameter(1,"android.view.ViewGroup")
	def viewGroup(self, viewGroup):
		return self

class UploadCoverUrlApiBuilder(ApiBaseBuilder):
	api_name = "com.demo.liveroom.autotest.AutoLivingViewModel.uploadCoverUrl"

	@parameter(1,"String")
	def imagePath(self, imagePath):
		return self

	@parameter(2,"tv.athena.live.api.IDataCallback")
	def callback(self, callback):
		return self

class StartLiveApiBuilder(ApiBaseBuilder):
	api_name = "com.demo.liveroom.autotest.AutoLivingViewModel.startLive"

	@parameter(1,"String")
	def title(self, title):
		return self

	@parameter(2,"String")
	def coverUrl(self, coverUrl):
		return self

	@parameter(3,"String")
	def extend(self, extend):
		return self

	@parameter(4,"int")
	def liveBzType(self, liveBzType):
		return self

	@parameter(5,"tv.athena.live.api.IDataCallback")
	def callBack(self, callBack):
		return self

	@parameter(6,"int")
	def audioSourceType(self, audioSourceType):
		return self

	@parameter(7,"int")
	def liveMode(self, liveMode):
		return self

class StartLiveApiBuilder(ApiBaseBuilder):
	api_name = "com.demo.liveroom.autotest.AutoLivingViewModel.startLive"

	@parameter(1,"tv.athena.live.api.broadcast.bean.StartLiveParams")
	def startLiveParams(self, startLiveParams):
		return self

class StopLiveApiBuilder(ApiBaseBuilder):
	api_name = "com.demo.liveroom.autotest.AutoLivingViewModel.stopLive"

class StopLiveApiBuilder(ApiBaseBuilder):
	api_name = "com.demo.liveroom.autotest.AutoLivingViewModel.stopLive"

	@parameter(1,"tv.athena.live.api.IDataCallback")
	def callback(self, callback):
		return self

class StopLiveApiBuilder(ApiBaseBuilder):
	api_name = "com.demo.liveroom.autotest.AutoLivingViewModel.stopLive"

	@parameter(1,"String")
	def extend(self, extend):
		return self

	@parameter(2,"tv.athena.live.api.IDataCallback")
	def callback(self, callback):
		return self

class StopLiveApiBuilder(ApiBaseBuilder):
	api_name = "com.demo.liveroom.autotest.AutoLivingViewModel.stopLive"

	@parameter(1,"String")
	def extend(self, extend):
		return self

	@parameter(2,"boolean")
	def isLeaveMediaRoom(self, isLeaveMediaRoom):
		return self

	@parameter(3,"tv.athena.live.api.IDataCallback")
	def callback(self, callback):
		return self

class StopLiveAndStopAudioFilePlayerApiBuilder(ApiBaseBuilder):
	api_name = "com.demo.liveroom.autotest.AutoLivingViewModel.stopLiveAndStopAudioFilePlayer"

	@parameter(1,"tv.athena.live.api.IDataCallback")
	def callback(self, callback):
		return self

class SwitchCameraApiBuilder(ApiBaseBuilder):
	api_name = "com.demo.liveroom.autotest.AutoLivingViewModel.switchCamera"

class RegisterAbsThunderEventListenerApiBuilder(ApiBaseBuilder):
	api_name = "com.demo.liveroom.autotest.AutoLivingViewModel.registerAbsThunderEventListener"

	@parameter(1,"tv.athena.live.basesdk.thunderblotwrapper.AbscThunderEventListener")
	def listener(self, listener):
		return self

class UnRegisterAbsThunderEventListenerApiBuilder(ApiBaseBuilder):
	api_name = "com.demo.liveroom.autotest.AutoLivingViewModel.unRegisterAbsThunderEventListener"

	@parameter(1,"tv.athena.live.basesdk.thunderblotwrapper.AbscThunderEventListener")
	def listener(self, listener):
		return self

class UnRegisterAllAbsThunderEventListenerApiBuilder(ApiBaseBuilder):
	api_name = "com.demo.liveroom.autotest.AutoLivingViewModel.unRegisterAllAbsThunderEventListener"

class TakeMicApiBuilder(ApiBaseBuilder):
	api_name = "com.demo.liveroom.autotest.AutoLivingViewModel.takeMic"

	@parameter(1,"boolean")
	def isEnable(self, isEnable):
		return self

	@parameter(2,"int")
	def mediaType(self, mediaType):
		return self

class EnableAudioApiBuilder(ApiBaseBuilder):
	api_name = "com.demo.liveroom.autotest.AutoLivingViewModel.enableAudio"

	@parameter(1,"boolean")
	def isEnable(self, isEnable):
		return self

class GetAudioFilePlayerApiBuilder(ApiBaseBuilder):
	api_name = "com.demo.liveroom.autotest.AutoLivingViewModel.getAudioFilePlayer"

class CheckLivePermissionApiBuilder(ApiBaseBuilder):
	api_name = "com.demo.liveroom.autotest.AutoLivingViewModel.checkLivePermission"

	@parameter(1,"int")
	def liveBzType(self, liveBzType):
		return self

	@parameter(2,"tv.athena.live.api.IDataCallback")
	def callBack(self, callBack):
		return self

class ObserveLivePublishQualityApiBuilder(ApiBaseBuilder):
	api_name = "com.demo.liveroom.autotest.AutoLivingViewModel.observeLivePublishQuality"

	@parameter(1,"boolean")
	def startReport(self, startReport):
		return self

	@parameter(2,"tv.athena.live.api.broadcast.ILivePublishQualityListener")
	def iLivePublishQualityListener(self, iLivePublishQualityListener):
		return self

class IsPushToCDNApiBuilder(ApiBaseBuilder):
	api_name = "com.demo.liveroom.autotest.AutoLivingViewModel.isPushToCDN"

	@parameter(1,"int")
	def mediaType(self, mediaType):
		return self

	@parameter(2,"boolean")
	def push(self, push):
		return self

class OnDestroyApiBuilder(ApiBaseBuilder):
	api_name = "com.demo.liveroom.autotest.AutoLivingViewModel.onDestroy"

class ChangeLiveRoomTypeApiBuilder(ApiBaseBuilder):
	api_name = "com.demo.liveroom.autotest.AutoLivingViewModel.changeLiveRoomType"

	@parameter(1,"int")
	def liveBzType(self, liveBzType):
		return self

	@parameter(2,"tv.athena.live.api.IDataCallback")
	def callBack(self, callBack):
		return self

class ChangeLiveMediaTypeApiBuilder(ApiBaseBuilder):
	api_name = "com.demo.liveroom.autotest.AutoLivingViewModel.changeLiveMediaType"

	@parameter(1,"int")
	def mediaType(self, mediaType):
		return self

	@parameter(2,"tv.athena.live.api.IDataCallback")
	def callBack(self, callBack):
		return self

class SwitchLiveModeApiBuilder(ApiBaseBuilder):
	api_name = "com.demo.liveroom.autotest.AutoLivingViewModel.switchLiveMode"

	@parameter(1,"long")
	def sid(self, sid):
		return self

	@parameter(2,"int")
	def mode(self, mode):
		return self

	@parameter(3,"int")
	def businessType(self, businessType):
		return self

	@parameter(4,"tv.athena.live.api.IDataCallback")
	def callBack(self, callBack):
		return self

class EditLiveInfoApiBuilder(ApiBaseBuilder):
	api_name = "com.demo.liveroom.autotest.AutoLivingViewModel.editLiveInfo"

	@parameter(1,"long")
	def sid(self, sid):
		return self

	@parameter(2,"String")
	def title(self, title):
		return self

	@parameter(3,"String")
	def uploadCoverUrl(self, uploadCoverUrl):
		return self

	@parameter(4,"tv.athena.live.api.IDataCallback")
	def callBack(self, callBack):
		return self

class DestroyBroadcastViewApiBuilder(ApiBaseBuilder):
	api_name = "com.demo.liveroom.autotest.AutoLivingViewModel.destroyBroadcastView"

